﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;

// For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860

namespace ConsulDemo.Controllers
{
    [Route("/")]
    [ApiController]
    public class HomeController : ControllerBase
    {

        [Route("api")]
        public string Get()
        {
            return "ok";
        }

        [Route("api2")]
        public string Get(string s)
        {
            return s;
        }
    }
}
